/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class SmgMemberManager extends BaseManager<SmgMember,java.lang.Integer>{

	private SmgMemberDao smgMemberDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setSmgMemberDao(SmgMemberDao dao) {
		this.smgMemberDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.smgMemberDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(SmgMemberQuery query) {
		return smgMemberDao.findPage(query);
	}
	public SmgMember getByLoginNameAndPassword(String loginName,
			String password) {
		return smgMemberDao.getByLoginNameAndPassword(loginName,password);
	}
	public List<SmgMember> getNerybyMember(Float gpsLatitude,
			Float gpsLongitude, int scope, int pageNumber,String sex,String memberCarType,String memberId) {
		return smgMemberDao.getNerybyMember(gpsLatitude,gpsLongitude,scope,pageNumber,sex,memberCarType,memberId);
	}
	public SmgMember getByLoginName(String loginName) {
		return smgMemberDao.getByLoginName(loginName);
	}
	public SmgMember getByNickname(String nickName) {
		return smgMemberDao.getByNickname(nickName);
	}
	public List<SmgMember> getListByMobileNumbers(String mobileNumbers) {
		return smgMemberDao.getListByMobileNumbers(mobileNumbers);
	}
	public List<SmgMember> getFriendMemberListByMemberId(String memberId,int start,int limit) {
		return smgMemberDao.getFriendMemberListByMemberId(memberId,start,limit);
	}
	public void updateuuid(Integer memberId, String uuid) {
		smgMemberDao.updateuuid(memberId,uuid);
	}
	public void updateNickname(Integer memberId, String nickName) {
		// TODO Auto-generated method stub
		smgMemberDao.updateNickname(memberId,nickName);
	}
	public void updateNicknameFirstchar(Integer memberId, String nickNameFirstchar) {
		smgMemberDao.updateNicknameFirstchar(memberId,nickNameFirstchar);
	}
	public List<SmgMember> getMajiaList() {
		return smgMemberDao.getMajiaList();
	}
	public List<SmgMember> getActivityMemberList() {
		return smgMemberDao.getActivityMemberList();
	}
	
}
